//
//  MineFriendCell.m
//  cityCar
//
//  Created by yao on 14-11-9.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "MineFriendCell.h"

@implementation MineFriendCell

- (void)dealloc
{
    [_myImageView release];
    [_titleLabel release];
    [_verifyReasonLabel release];
    [_sexImageView release];
    [super dealloc];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
        self.myImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.myImageView];
        [_myImageView release];
        
        self.titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.titleLabel];
        [_myImageView release];
        
        self.verifyReasonLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.verifyReasonLabel];
        [_verifyReasonLabel release];
        
        self.sexImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.sexImageView];
        [_sexImageView release];
        
    
    }
    return self;
}

- (void)layoutSubviews
{
    // 圆角的imageView
    self.myImageView.clipsToBounds = YES;
    self.myImageView.layer.cornerRadius = 25;
    self.myImageView.frame = CGRectMake(10, 10, 50, 50);
    
    self.titleLabel.frame = CGRectMake(65, 10, 100, 20);
    
    self.sexImageView.clipsToBounds = YES;
    self.sexImageView.layer.cornerRadius = 5;
    self.sexImageView.frame = CGRectMake(self.contentView.frame.size.width - 20, 10, 10, 10);
    
    self.verifyReasonLabel.frame = CGRectMake(65, 35, self.contentView.frame.size.width - 70, 20);
    self.verifyReasonLabel.font = [UIFont systemFontOfSize:13];
    
    
    
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
